﻿<%@ Control Language="C#" %>
<%@ Import Namespace="Hidistro.Core" %>
<%@ Import Namespace="Hidistro.UI.SaleSystem.Tags" %>
<%@ Register TagPrefix="wnxd" Assembly="wnxd.Web" Namespace="wnxd.Web" %>
<asp:Repeater ID="PList" runat="server">
    <ItemTemplate>
        <wnxd:Load runat="server" img="http://image.juseshop.com/images\/newindex/new1load.gif">
            <div class="wnxd_sortlist">
                <div class="r-content-1-top">
                    <h2><%#Eval("Name")%>&nbsp;&nbsp;|&nbsp;&nbsp;</h2>
                    <p>
                        <asp:Repeater ID="FList" runat="server">
                            <ItemTemplate>
                                <a href="<%#Eval("Url")%>"><%#Eval("Name")%></a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </p>
                    <span><a href="<%#Globals.GetSiteUrls().SubCategory((int)Eval("CategoryId"), Eval("RewriteName"), Eval("ParentRewriteName"))%>">查看更多>></a></span>
                </div>
                <div class="r-content-1-bott">
                    <div class="r-content-1-bott-l">
                        <%#((wnxd_SortList)this.Parent).GetSortImg(Eval("CategoryId").ToString(),0)%>
                        <%#((wnxd_SortList)this.Parent).GetSortImg(Eval("CategoryId").ToString(),1)%>
                    </div>
                    <div class="r-content-1-bott-r">
                        <ul>
                            <asp:Repeater ID="GList" runat="server">
                                <ItemTemplate>
                                    <li>
                                        <a href="<%#Globals.GetSiteUrls().UrlData.FormatUrl("productDetails", new object[] { Eval("ProductId"), Eval("CategoryUrl") })%>" target="_blank">
                                            <img title="<%#Eval("ProductName")%>" src="<%#Globals.GetImgUrl(Eval("ImageUrl7").ToString())%>">
                                        </a>
                                        <p style="display: block; height: 46px; overflow: hidden;"><%#Eval("ProductName")%> <%#Eval("ProductText")%></p>
                                        <p style="position: relative;">
                                            <span class="price"><span>¥</span><strong><%#((decimal)Eval("RankPrice")).ToString("F0")%></strong></span>
                                            <span><span>¥</span><del><%#((decimal)Eval("MarketPrice")).ToString("f0")%></del></span>
                                            <span class="baoyou"><a>包邮</a></span>
                                        </p>
                                        <p class="m20">月销量<%#Eval("SaleCounts")%>件<span style="margin-left: 10px;">评价:<%#Eval("Review")%></span></p>
                                        <em>
                                            <a class="addToCart" onclick="wnxd_addToCart($(this));" defaultsku="<%# Eval("SkuId") %>" stock="<%# Eval("Stock") %>" href="javascript:void(0)">
                                                <img src="http://image.juseshop.com/images\/index/guc.png">
                                            </a>
                                        </em>
                                    </li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <div style="clear: both;"></div>
            </div>
        </wnxd:Load>
    </ItemTemplate>
</asp:Repeater>
